package com.cloud.api.domain.user;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.Email;
import jakarta.validation.constraints.Pattern;
import lombok.Data;

import java.io.Serializable;
@Data
@Schema(description = "修改个人信息接收参数")
public class UpdateUserInfo implements Serializable {

    @Schema(description = "邮箱")
    @Email(message = "{validation.user.email}")
    private String email;

    @Schema(description = "手机号")
    @Pattern(regexp = "^1(3|4|5|6|7|8|9)\\d{9}$",message = "{validation.common.phoneFormat}")
    private String mobile;

}
